package org.dtrd.modules.archive.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.commons.lang3.StringUtils;

import java.util.List;

/**
 * @author xia
 * @date 2022/9/12 11:32 AM
 */
public interface IBaseArchiveReportService<T> extends IService<T> {


    default boolean saveReportUrl(Integer patientId, List<String> reportUrlList) {
        T entity = initEntity(patientId, StringUtils.join(reportUrlList, ","));
        return save(entity);
    }

    T initEntity(Integer patientId, String reportUrl);

}
